The Slider Component > FSlider.setHorizontal() |
FSlider.setHorizontal()
Availability
Flash Player 6.
Usage
mySlider_sld.setHorizontal (horizontal)
Parameters
horizontal A Boolean value specifying whether the component is displayed
horizontally (true) or vertically (false).
Returns
Nothing
Description
Allows you to change the orientation of the Slider component between horizontal
and vertical. It takes a Boolean value which specifies whether the component
is displayed horizontally (true) or vertically (false).
Example
The slider_getHorizontal.fla example file contains an example of using this method.
The following code sets horizontal to true and then retrieves and traces this value.
mySlider_sld.setHorizontal(true); //the slider will display horizontally. trace( "Horizontal: " + mySlider_sld.getHorizontal() );
See also